﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace NewSeasonFinder
{
    public partial class Form_Rename : Form
    {
        public Form_Rename(string oldFileName)
        {
            InitializeComponent();
            textBox_OriginalName.Text = oldFileName;
            textBox_NewName.Text = oldFileName;
            NewFileName = oldFileName;
        }

        public Form_Rename(string oldFileName, string newFileName)
        {
            InitializeComponent();
            textBox_OriginalName.Text = oldFileName;
            textBox_NewName.Text = newFileName;
            NewFileName = newFileName;
        }

        public string NewFileName;

        private void button1_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.OK;
            NewFileName = textBox_NewName.Text;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
        }


    }
}
